﻿namespace Delegate
{
    internal class Program
    {

        delegate int NumberCalculate(int a, int b);


        static void Main(string[] args)
        {
            Console.WriteLine("Hello, World!");

            NumberCalculate nc1 = new NumberCalculate(GetAdd);

        }

        static int GetAdd(int a, int b)
        {
            return a + b;
        }

    }
}